<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="sf" uri="http://www.springframework.org/tags/form"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<jsp:include page="../../views/include/head.jsp"/>
</head>
<body class="leftnav">
<sf:form modelAttribute="userChangePasswordObj">
<table border=0 height="98%" width="100%" cellpadding="0" cellspacing="0"><tbody>
<tr><td height="99%" width="100%" align="center" valign="top"> 
	<table border=0 height="98%" width="100%" cellpadding="0" cellspacing="0" class="linebox">
		<tr class="blueheader">
			<td height="25" align="left">&nbsp;Change Password</td>
		</tr>
		<tr><td height="100%" width="100%" align="center" valign="top">
			<table border="1" width="99%" cellpadding="2" cellspacing="0" class="linedropbox" >
			<tbody>
				<tr class="header">
					<td height="25">&nbsp;User Password</td>
				</tr>
				<tr><td width="100%" align="left" valign="top">
					<c:set var="currentRow" value="0"/>
					<table border="0" width="100%" cellpadding="3" cellspacing="0" class="linebox">
						<tbody>
						<tr class="row${currentRow}"><c:set var="currentRow" value="${(currentRow+1)%2}"/>
							<td width="40%" align="right" valign="middle" height="25">Password <span class="asterisk">*</span></td>
							<td>
								<sf:password path="newPassword" maxlength="50" size="25" class="formfiled" />
								<sf:errors path="newPassword" cssClass="error"/>
							</td>
						</tr>
						<tr class="row${currentRow}"><c:set var="currentRow" value="${(currentRow+1)%2}"/>
							<td width="40%" align="right" valign="middle" height="25">Confirm Password <span class="asterisk">*</span></td>
							<td>
								<sf:password path="newPasswordConfirm" maxlength="50" size="25" class="formfiled" />
								<sf:errors path="newPasswordConfirm" cssClass="error"/>
							</td>
						</tr>
						
						<tr class="row${currentRow}"><c:set var="currentRow" value="${(currentRow+1)%2}"/>
							<td colspan="2">&nbsp;</td>
						</tr>
						</tbody>
					</table>
					<table width="90%" cellpadding="5" cellspacing="0" border="0">
						<tbody>
							<tr>
								<td height="25" width="100%" align="center" valign="top" colspan="2">
									<div id="errmsg"><font color="red"><c:out value="${errmsg}"/></font></div>
									<hr/>
								</td>
							</tr>
							<tr>
								<td height="25" width="50%" align="left" valign="middle">
									<span class="asterisk">* </span>Required fields
								</td>
								<td height="25" width="100%" align="right" valign="middle">
									<input class="button blue small" type="submit" name="_eventId_changepassword" value="Change Password"/>
									<input class="button blue small" type="reset" value="Reset"/>
									<input class="button blue small" type="submit" name="_eventId_list" value="Back to List"/>
								</td>
							</tr>
						</tbody>
					</table>
				</td></tr>
			</tbody>
			</table>					
		</td></tr>			
	</table>
</td></tr>
</tbody></table>
<input type="hidden" name="_flowExecutionKey" value="${flowExecutionKey}"/>
</sf:form>
</body>
</html>